/*
 *  VortPolygonReference.h
 *  VortPan
 *
 *  Created by Gregor Veble on 6/29/10.
 *  Copyright 2010  . All rights reserved.
 *
 */

#ifndef VORTPOLYGONREFERENCE_H
#define VORTPOLYGONREFERENCE_H

#include <vector>

#include "VortBase.h"
#include "VortPolygon.h"

namespace VortPan {
	
	class VortPolygonReference {
	public:
		VortPolygonReference(VortPolygon& rPolygonNew, int ArrayIndex=-1);
		~VortPolygonReference();
		
		VortPolygonReference& operator=(const VortPolygonReference& R);
	protected:
		VortPolygon* pPolygon;
		int Index;
		bool EdgeDirection;
		
		friend class VortMesh;
		friend class VortSystem;
		
	};
	
}

#endif